import { Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import {DemoPlayerDataEntity} from "../entity/player_data";

/**
 * 商品示例
 */
@Provide()
export class DemoPlayerDataService extends BaseService {
  @InjectEntityModel(DemoPlayerDataEntity)
  demoPlayerDataEntity: Repository<DemoPlayerDataEntity>;

  async page(query){
    let sql = `SELECT * FROM demo_player_data`,
      pageData = await this.sqlRenderPage(sql,query)
    return pageData
  }
}
